/*
	AutoRepair.h
	(c)2004 Palestar Inc, Richard Lyle
*/

#ifndef AUTOREPAIR_H
#define AUTOREPAIR_H

#include "Game/GadgetAutoRepair.h"

//----------------------------------------------------------------------------

class AutoRepair : public GadgetAutoRepair
{
public:
	DECLARE_WIDGET_CLASS();

	// NounGadget interface
	int	addValue() const
	{
		return 10000;
	}
	Type type() const
	{
		return SPECIAL;
	}
	int buildTechnology() const
	{
		return 75;
	}
	int	buildCost() const
	{
		return 170;
	}
	dword buildFlags() const
	{
		return NounPlanet::FLAG_METALS;
	}
	int	buildTime() const
	{
		return 150;
	}

	// GadgetAutoRepair interface
	int maxSupply() const
	{
		return 2000;
	}//Added 1000 -JBUD-
	int reloadRate() const
	{
		return 50;
	}
	int hullRepairRate() const
	{
		return 220 + (30 * level());			// based on 800 seconds to fully repair a destroyer hull from full damage
	}//Increased 100 -JBUD-
	int gadgetRepairRate() const
	{
		return 30 + (15 * level());
	}
	int energyCost() const
	{
		return 0;
	}//added 1 -JBUD-
};

//----------------------------------------------------------------------------



#endif

//----------------------------------------------------------------------------
// EOF

